package com.fyh.feign;

import com.fyh.entity.common.Result;
import com.fyh.entity.job.JobPosition;
import com.fyh.entity.job.SimpleJobPosition;
import com.fyh.entity.user.JobFavorite;
import com.fyh.feign.fallback.ChatJobFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-job", fallback = ChatJobFeignClientFallback.class, path = "/job")
public interface ChatJobFeignClient {

    @GetMapping("/detail")
    Result<JobPosition> getJobPositionDetail(@RequestParam("positionId") Long positionId);
}
